package com.android.friend.activity;

import com.android.friend.app.R;
import com.android.friend.example.widget.EditTextDrawableClickDialog;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class WidgetActivity extends Activity implements OnClickListener{

	private Button btnEditDrawableClick;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_widget);
		init();
	}
	
	private void init(){
		btnEditDrawableClick = (Button)findViewById(R.id.btnEdtDrawableClick);
		btnEditDrawableClick.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnEdtDrawableClick:
			showEditDrawableDialog();
			break;
		default:
			break;
		}
	}
	
	private void showEditDrawableDialog(){
		new EditTextDrawableClickDialog(this).show();
	}
}
